package org.example.platform.design.zerenlian;

public class Jl extends manager {
    public Jl(String name) {
        super(name);
    }

    @Override
    public void getResult(Request request) {
        if (request.getType().equals("请假") && request.getNum() <= 2) {
            System.out.println("批准请假:"+request.getContent()+"数量："+request.getNum());
        } else {
            if (manager != null) {
                manager.getResult(request);
            }
        }
    }
}